import csv
import logging
import os.path
import sys
from logging import config

from faker import Faker


def getMobile():
    faker = Faker("zh_Cn")
    # 获取手机号
    mobile = faker.phone_number()
    return mobile

def getCsvData(path):
    dataList = []
    with open(path,mode="r",encoding="utf-8") as f :
        datas = csv.reader(f)
        for data in datas:
            dataList.append(data)
    return dataList

config.fileConfig("conf/log.conf")
# 定义logger变量
logger = logging.getLogger()

BASE_URL= "http://127.0.0.1:6688"